home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / times.man < prev    next >
Encoding:
Text File  |  1989-09-26  |  2.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. TIMES                 C Library Procedures                  TIMES
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      times - get process times
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
  13.      ##iinncclluuddee <<ssyyss//ttiimmeess..hh>>
  14.  
  15.      ttiimmeess((bbuuffffeerr))
  16.      ssttrruucctt ttmmss **bbuuffffeerr;;
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      TThhiiss iinntteerrffaaccee iiss oobbssoolleetteedd bbyy ggeettrruussaaggee((22))..
  20.  
  21.      _T_i_m_e_s returns time-accounting information for the current
  22.      process and for the terminated child processes of the
  23.      current process.  All times are in 1/HZ seconds, where HZ is
  24.      60.
  25.  
  26.      This is the structure returned by _t_i_m_e_s:
  27.  
  28.      /*
  29.       * times.h --
  30.       *
  31.       *   Structure returned by backwards compatible times()
  32.       *      function.  Times() has been obsoleted by getrusage(2).
  33.       *
  34.       * Copyright 1989 Regents of the University of California
  35.       * Permission to use, copy, modify, and distribute this
  36.       * software and its documentation for any purpose and without
  37.       * fee is hereby granted, provided that the above copyright
  38.       * notice appear in all copies.  The University of California
  39.       * makes no representations about the suitability of this
  40.       * software for any purpose.  It is provided "as is" without
  41.       * express or implied warranty.
  42.       *
  43.       * $Header: /sprite/src/lib/include/sys/RCS/times.h,v 1.1 89/08/20 19:30:10 rab Exp $
  44.       */
  45.  
  46.      #ifndef _SYS_TIMES_H
  47.      #define _SYS_TIMES_H
  48.  
  49.  
  50.      /*
  51.       * Structure returned by times()
  52.       */
  53.      struct tms {
  54.          time_t    tms_utime;          /* user time */
  55.          time_t    tms_stime;          /* system time */
  56.          time_t    tms_cutime;         /* user time, children */
  57.          time_t    tms_cstime;         /* system time, children */
  58.      };
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 9, 1985                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TIMES                 C Library Procedures                  TIMES
  71.  
  72.  
  73.  
  74.      #endif /* _SYS_TIMES_H */
  75.  
  76.  
  77.      The children times are the sum of the children's process
  78.      times and their children's times.
  79.  
  80. SSEEEE AALLSSOO
  81.      time(1), getrusage(2), wait3(2), time(3)
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0                May 9, 1985                          2
  130.  
  131.  
  132.  
  133.